<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <th:block th:replace="layout :: resource"></th:block>
</head>
<body class="zjgl-layout-page">
<div class="layui-container">
    <form class="layui-form" id="search-form">
        <input type="hidden" th:value="${id}" name="id">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" th:value="${name}" required lay-verify="required"
                       placeholder="请输入商品名" lay-reqText="商品名不能为空！" autocomplete="off" class="layui-input" style="width: 160px">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">售价</label>
            <div class="layui-input-inline">
                <input type="text" name="name" th:value="${price}" required lay-verify="required"
                       placeholder="请输入售价" lay-reqText="售价不能为空！" autocomplete="off" class="layui-input" style="width: 160px">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">库存</label>
            <div class="layui-input-inline">
                <input type="text" name="name" th:value="${number}" required lay-verify="required"
                       placeholder="请输入库存" lay-reqText="库存不能为空！" autocomplete="off" class="layui-input" style="width: 160px">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">成本</label>
            <div class="layui-input-inline">
                <input type="text" name="name" th:value="${cost}" required lay-verify="required"
                       placeholder="请输入成本" lay-reqText="成本不能为空！" autocomplete="off" class="layui-input" style="width: 160px">
            </div>
        </div>
        <div class="layui-inline" style="padding-left: 50px">
            <button class="layui-btn" lay-submit lay-filter="save" id="save">
                <i class="flaticon2-magnifier-tool"></i> 保存
            </button>
            <button type="reset" class="layui-btn  layui-btn-primary" id="btnReset">
                重置
            </button>
        </div>
    </form>
</div>
</body>
</html>